this._bodyStack.layout_manager = new LabelExpanderLayout();
contentBox.add_actor(this._bodyStack);
- this.bodyLabel = new URLHighlighter(body, false, this._useBodyMarkup);
+ this.bodyLabel = new URLHighlighter('', false, this._useBodyMarkup);
this.bodyLabel.actor.add_style_class_name('message-body');
this._bodyStack.add_actor(this.bodyLabel.actor);
+ this.setBody(body);
this._closeButton.connect('clicked', Lang.bind(this,
function() {
},
setBody: function(text) {
+ this._bodyText = text;
this.bodyLabel.setMarkup(text, this._useBodyMarkup);
},
return;
this._useBodyMarkup = enable;
if (this.bodyLabel)
- this.setBody(this.bodyLabel.actor.text);
+ this.setBody(this._bodyText);
},
setActionArea: function(actor) {
this._actionBin.visible = (this._actionBin.get_n_children() > 0);
if (this._bodyStack.get_n_children() < 2) {
- let expandedLabel = new URLHighlighter(this.bodyLabel.actor.text,
+ let expandedLabel = new URLHighlighter(this._bodyText,
true, this._useBodyMarkup);
this.setExpandedBody(expandedLabel.actor);
}